/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package itc.com.co.beans.utils;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

/**
 *
 * @author Nas
 */
public class FacesUtils {
    
    public static void addSuccessMessage(String message){
        
         FacesMessage msg = null;
        msg = new FacesMessage(FacesMessage.SEVERITY_INFO, message, null);
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }
    
    public static void addWarnMessage(String message){
        
         FacesMessage msg = null;
        msg = new FacesMessage(FacesMessage.SEVERITY_WARN, message, null);
        FacesContext.getCurrentInstance().addMessage(null, msg);
        
    }
    
}
